.class Lcom/waiqin365/lightapp/im/activity/aj;
.super Landroid/content/BroadcastReceiver;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/aj;->a:Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 3

    const-string/jumbo v0, "msgid"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "from"

    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v2

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/hyphenate/chat/EMChatManager;->getConversation(Ljava/lang/String;)Lcom/hyphenate/chat/EMConversation;

    move-result-object v1

    if-eqz v1, :cond_0

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Lcom/hyphenate/chat/EMConversation;->getMessage(Ljava/lang/String;Z)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setAcked(Z)V

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/aj;->abortBroadcast()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/aj;->a:Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;->w(Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;)Lcom/waiqin365/lightapp/im/adapter/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/f;->notifyDataSetChanged()V

    return-void
.end method
